import request from '@/utils/request.js'
export default{
    getLoginParam(){
        return request({
            url:'api/ucenter/wx/login',
            method:'get'
        })
    },
    createNative(orderId){
        return request({
            url:`site/order/wxPay/auth/createNative/${orderId}`,
            method:'post'
        })
    },
    queryPayStatus(orderId){
        return request({
            url:`site/order/wxPay/auth/queryPayStatus/${orderId}`,
            method:'get'
        })
    },
    cancelOrder(orderId){
        return request({
            url:`site/order/wxPay/auth/cancelOrder/${orderId}`,
            method:'get'
        })
    }
}